<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head></h:head>
<h:body>
	<h:form>
		<rich:panel>
			<f:facet name="header">
				<h:outputText value="Purchase Order Detail" />
			</f:facet>
			<h:panelGrid columns="2">
				<h:outputText value="Catalog Item ID:" />
				<h:outputText value="#{purchaseOrderPagesController.po.poid}" />
				<h:outputText value="Purchase Order Document No.:" />
				<h:outputText
					value="#{purchaseOrderPagesController.po.purchaseorderdocno}" />
				<h:outputText value="Authour Full Name:" />
				<h:outputText
					value="#{purchaseOrderPagesController.po.author.fullname}" />
				<h:outputText value="Seller Full Name:" />
				<h:outputText
					value="#{purchaseOrderPagesController.po.seller.fullname}" />
				<h:outputText value="Status:" />
				<h:outputText value="#{purchaseOrderPagesController.po.status}" />
			</h:panelGrid>
			<h:dataTable value="#{purchaseOrderPagesController.po.polineitems}"
				var="podlist">
				<h:column>
					<h:outputText value="#{podlist.polineitemid}" />
				</h:column>
				<h:column>
					<h:outputText value="#{podlist.catalogitem.product.name}" />
				</h:column>
				<h:column>
					<h:outputText value="#{podlist.qty}" />
				</h:column>
				<h:column>
					<h:outputText value="#{podlist.deliverydate}" />
				</h:column>
			</h:dataTable>
			<h:commandLink action="PurchaseOrderListBuyerView" value="Back" />
		</rich:panel>
	</h:form>
</h:body>
</html>
